package com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.domain.ChatRoomEntity;
import com.domain.ChatUserRelaEntity;

import java.util.List;

/**
 * <p>
 * 聊天室房间人员表 服务类
 * </p>
 *
 * @author sly
 * @since 2023-12-30
 */
public interface ChatUserRelaService extends IService<ChatUserRelaEntity> {

    List<ChatUserRelaEntity> getChatUsers(Long chatId);

    Long getChatUserCount(Long chatId);

    List<ChatRoomEntity> getUserChats(Long userId);


    void addChatUser(ChatUserRelaEntity chatUserRelaEntity);

    void updateChatUser(ChatUserRelaEntity chatUserRelaEntity);

    void deleteChatUser(ChatUserRelaEntity chatUserRelaEntity);
}
